
<div class="content">
    <!--- Bread Crumbs Menu -->
    <div class="breadLine">
        <ul class="breadcrumb">
            <li><a href="/">Admin</a> <span class="divider">></span></li>
            <li class="active"><a href="/">User</a> <span class="divider">></span></li>     
            <li class="active"><?php echo Config::get_page(); ?></li>
        </ul>
        <?php
            //echo $this->setLayout("breadcrumbs_right_menu");
        ?>
    </div>

   <div class="workplace">

        <div class="row-fluid">
            <div class="span12">
                <div class="head clearfix">
                    <div class="isw-calendar"></div>
                        <h1><?php echo Config::get_page(); ?></h1>
                    </div>
                    
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="widget">
                                <div class="head dark">
                                    <div class="icon title_icon"><i class="fa fa-list"></i></div>
                                    <h2>View FlowBook</h2>
                                </div>                        
                                <div class="block-fluid">
                                    <?php
                                        $db = new Database();
                                        $fs = new Functions();
                                        $Flowbook_Functions = new Flowbook_Functions();
                                        $Campaign_Functions = new Campaign_Functions();
                                    ?>
                                    <div class="accordion">
                                        <?php   for($i=date("Y"); $i>=YEAR_STARTED; $i--){ ?>
                                        <!-- Start of Flowbook div -->
                                        <h3><?php echo $i; ?></h3>
                                        <div>
                                            <div class="row-form">
                                                <div class="block-fluid">
                                                    <div class="row-form">
                                                        <div class="span12">
                                                            <div class="span6">
                                                                <div class="span3">Brand Category:</div>
                                                                <div class="span9"><input type="text" placeholder="Placeholder example" style="margin-left: -5px;"/></div>
                                                            </div>
                                                            <div class="span6">
                                                                <div class="span3">Month Campaign:</div>
                                                                <div class="span5">
                                                                    <?php echo $Campaign_Functions->select_campaign("campaign_id",'style="margin-left: -5px;"',"validate[required]","",""); ?>                                                                                                                     
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="span12" style="margin-left:0;margin-top: -15px;">
                                                            <div class="span3">
                                                                <div class="span6">Brand:</div>
                                                                <div class="span6">
                                                                    <select name="">
                                                                        <option value="0">choose a option...</option>      
                                                                        <?php echo $Flowbook_Functions->options_set($db,array("category"=>"brand","type"=>"options")); ?>                                                        
                                                                    </select>
                                                                </div>
                                                            </div>
                                                            <div class="span3">
                                                                <div class="span6">Form:</div>
                                                                <div class="span6">
                                                                    <select name="">
                                                                        <option value="0">choose a option...</option>                                                                   
                                                                    </select>
                                                                </div>
                                                            </div>
                                                            <div class="span3">
                                                                <div class="span6">Style:</div>
                                                                <div class="span6">
                                                                    <select name="">
                                                                        <option value="0">choose a option...</option>                                                                   
                                                                    </select>
                                                                </div>
                                                            </div>
                                                            <div class="span3">
                                                                <div class="span6">Size:</div>
                                                                <div class="span6">
                                                                    <select name="">
                                                                        <option value="0">choose a option...</option>                                                                   
                                                                    </select>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="span12" style="margin-left:0;margin-top: -15px;">
                                                            <div class="span3">
                                                                <div class="span6">Sub Brand:</div>
                                                                <div class="span6">
                                                                    <select name="">
                                                                        <option value="0">choose a option...</option>                                                                   
                                                                    </select>
                                                                </div>
                                                            </div>
                                                            <div class="span3">
                                                                <div class="span6">Sub Form:</div>
                                                                <div class="span6">
                                                                    <select name="">
                                                                        <option value="0">choose a option...</option>                                                                   
                                                                    </select>
                                                                </div>
                                                            </div>
                                                            <div class="span3">
                                                                <div class="span6">Color:</div>
                                                                <div class="span6">
                                                                    <select name="">
                                                                        <option value="0">choose a option...</option>                                                                   
                                                                    </select>
                                                                </div>
                                                            </div>
                                                            <div class="span3">
                                                                <div class="span12">
                                                                    <input type="text" placeholder="Search"/>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="span12" style="margin-left:0;margin-top: -15px;margin-bottom: -15px;">
                                                            <div class="pull-right">
                                                            <button class="btn btn-primary" type="button">Search</button>
                                                            &nbsp;&nbsp;
                                                            <button class="btn btn-primary" type="button">Export to Excel</button>
                                                        </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="block-fluid" style="width:500%;">
                                                    <div class="" style="overflow:auto;" >
                                                        <table class="tb_brochure" cellpadding="0" cellspacing="0" >
                                                            <thead>
                                                                <tr>
                                                                    <th>
                                                                       Item Code
                                                                    </th>
                                                                    <th>
                                                                       Decription
                                                                    </th>
                                                                    <th>
                                                                       COI Date
                                                                    </th>
                                                                    <th>
                                                                       Brand
                                                                    </th>
                                                                    <th>
                                                                       Sub brand
                                                                    </th>
                                                                    <th>
                                                                       Style
                                                                    </th>
                                                                    <th>
                                                                       Color
                                                                    </th>
                                                                    <th>
                                                                       Size
                                                                    </th>
                                                                    <th>
                                                                       Inv. Tag
                                                                    </th>
                                                                    <th>
                                                                       Inv. Class
                                                                    </th>
                                                                    <th>
                                                                       Age as of
                                                                    </th>
                                                                    <th>
                                                                       CSP as of
                                                                    </th>
                                                                    <th>
                                                                       CSP as of
                                                                    </th>
                                                                    <th>
                                                                       Cost as of
                                                                    </th>
                                                                    <!--<th>-->
                                                                    <!--   Actions-->
                                                                    <!--</th>-->
                                                                    <?php echo $Campaign_Functions->campaign_month('Full'); ?>
                                                                </tr>
                                                            </thead>
                                                            <tbody style="width:100%;">
                                                                <?php
                                                                for($a = 0; $a < 5 ; $a++){
                                                                ?>
                                                                <tr>
                                                                    <?php
                                                                    for($b = 0; $b < 38; $b++){
                                                                    ?>
                                                                    <td style="height: 100px;width:300px;">
                                                                        Dmitry Ivaniuk
                                                                    </td>
                                                                    <?php
                                                                    }
                                                                    ?>
                                                                </tr>
                                                                <?php
                                                                }
                                                                ?>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div> 
                                        </div>
                                        <?php
                                        }
                                        ?>
                                        <!-- End of Flowbook div -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                </div>
            </div>    
        </div>

   </div>

</div> 